/*
 *  Netzpult - Your desk on the web
 *  Copyright (C) 2011  Ulrich Hilger, http://uhilger.de
 *
 *  This program is free software: you can redistribute it and/or modify
 *  it under the terms of the GNU General Public License as published by
 *  the Free Software Foundation, either version 3 of the License, or
 *  (at your option) any later version.
 *
 *  This program is distributed in the hope that it will be useful,
 *  but WITHOUT ANY WARRANTY; without even the implied warranty of
 *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 *  GNU General Public License for more details.
 *
 *  You should have received a copy of the GNU General Public License
 *  along with this program.  If not, see http://www.gnu.org/licenses/
 */

package de.uhilger.netzpult.client;

import java.util.List;

import com.google.gwt.user.client.rpc.RemoteService;
import com.google.gwt.user.client.rpc.RemoteServiceRelativePath;

import de.uhilger.netzpult.shared.Document;
import de.uhilger.netzpult.shared.Folder;

/**
 * 
 * @author Copyright (c) Ulrich Hilger, http://uhilger.de
 * @author Published under the terms and conditions of
 * the <a href="http://www.gnu.org/licenses/" target="_blank">GNU General Public License</a>
 */
@RemoteServiceRelativePath("public")
public interface PublicService extends RemoteService, BoundTreeService {

	//public static final String EDITOR_LOAD_DELAY = "editor_load_delay";

	String getDefaultDocument() throws Exception;
	String getDocumentOwner(int docId) throws Exception;
	Document getDocument(String owner, String id) throws Exception;
	//void setOwner(String owner);
	String getParameter(String parameterName) throws Exception;
	String getDefaultOwner() throws Exception;
	List<Folder> getFoldersContaining(String owner, int documentId) throws Exception;
	List<Folder> getPathToFolder(Folder folder) throws Exception;
	Document getDocumentForPath(String owner, String path) throws Exception;
	List<Document> findDocuments(String owner, String searchItem) throws Exception;
}
